﻿// <copyright file="DomainsOwner.cs" company="Gravity Age Studios">
// Code released under the MIT license (see License.txt).
// </copyright>
// <author>Vicente Cartas Espinel</author>
// <email>vicente.cartas@gmail.com</email>
namespace LightSwitchApplication
{
    using System;
    using Microsoft.LightSwitch.Presentation;
    using Microsoft.LightSwitch.Presentation.Extensions;
    using System.Windows.Controls;

    public partial class DomainsOwner
    {
        partial void ViewDetails_CanExecute(ref bool result)
        {
            result = this.Collection.SelectedItem != null;
        }

        partial void ViewDetails_Execute()
        {
            this.Application.ShowDomainViewOwner(this.Collection.SelectedItem.Id);
        }
    }
}
